﻿@model IEnumerable<DevWeb.Biztalk.DeploymentSettings.WebUI.Models.DeploymentLogViewModel>

@{
    ViewBag.Title = "Index";
}

<h2>Deployment Logs</h2>

@if (Model.Count() > 0)
{
    var item = Model.FirstOrDefault();
    
             <h3>Integration: @Html.DisplayFor(modelItem => item.IntegrationName)</h3>
            <h3>Integration Version: @Html.DisplayFor(modelItem => item.IntegrationVersion)</h3>
}

<table>
    <tr> <th>
             @Html.DisplayNameFor(model => model.CreateDateTime)
         </th>
        <th>
            @Html.DisplayNameFor(model => model.Type)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Environment)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MachineName)
        </th>
        
       
        <th>
            @Html.DisplayNameFor(model => model.DeployedBy)
        </th>
        
       
    </tr>

    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.CreateDateTime)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Type)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Environment)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.MachineName)
            </td>
       
        
            <td>
                @Html.DisplayFor(modelItem => item.DeployedBy)
            </td>
           
       
        </tr>
    }

</table>